package cn.itsource.pet.domain;

import cn.itsource.basic.domain.BasicDomain;
import cn.itsource.org.domain.Shop;
import cn.itsource.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BasicDomain {
    private String name;
    private BigDecimal saleprice;
    private BigDecimal costprice;
    private String resources;
    private Integer state;
    private Long type_id;
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8")
    private Date createtime;
    private Shop shop;
    private User user;
    private SearchMasterMsg searchMasterMsg;
    private PetDetail detail;

}
